package daoImpl;

import dao.userDao;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import pojo.User;


import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public class userDaoImpl extends SqlSessionDaoSupport implements userDao {


    public User getUserById(Integer id) {
        SqlSession sqlSession = super.getSqlSession();
        User user = sqlSession.selectOne("getUserById",id);
        return user;
    }

}
